{% extends "base.html" %}

{%block body%}
<div id="battle">
<ul>
	<li><a href="../hero/{{ battle.fighter.name }}">{{ battle.fighter.name }}</a></li>
    <li>VS</li>
	<li><a href="../hero/{{ battle.opponent.name }}">{{ battle.opponent.name }}</a></li>

    {% if not show_results %}
    <div id="dofightForm">
		<form action="fight" method="post">
		<div><input type="submit" value="Fight!"></div>
	</form>
	</div>

    {% else %}
    <li>Attribute: {{ battle.attribute }}</li>
	<li>Winner: {{ battle.show_winner }}</li>

    {% endif %}
</ul>
</div>
{% endblock %}
